Optimal. Leaf size=52 \[ \frac{\sin (e+f x)}{a f}-\frac{b \tanh ^{-1}\left (\frac{\sqrt{a} \sin (e+f x)}{\sqrt{a+b}}\right )}{a^{3/2} f \sqrt{a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0632139, antiderivative size = 52, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {4147, 388, 208} \[ \frac{\sin (e+f x)}{a f}-\frac{b \tanh ^{-1}\left (\frac{\sqrt{a} \sin (e+f x)}{\sqrt{a+b}}\right )}{a^{3/2} f \sqrt{a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4147
Rule 388
Rule 208
Rubi steps
\begin{align*} \int \frac{\cos (e+f x)}{a+b \sec ^2(e+f x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1-x^2}{a+b-a x^2} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac{\sin (e+f x)}{a f}-\frac{b \operatorname{Subst}\left (\int \frac{1}{a+b-a x^2} \, dx,x,\sin (e+f x)\right )}{a f}\\ &=-\frac{b \tanh ^{-1}\left (\frac{\sqrt{a} \sin (e+f x)}{\sqrt{a+b}}\right )}{a^{3/2} \sqrt{a+b} f}+\frac{\sin (e+f x)}{a f}\\ \end{align*}
Mathematica [A] time = 0.112577, size = 52, normalized size = 1. \[ \frac{\sqrt{a} \sin (e+f x)-\frac{b \tanh ^{-1}\left (\frac{\sqrt{a} \sin (e+f x)}{\sqrt{a+b}}\right )}{\sqrt{a+b}}}{a^{3/2} f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.091, size = 45, normalized size = 0.9 \begin{align*}{\frac{1}{f} \left ({\frac{\sin \left ( fx+e \right ) }{a}}-{\frac{b}{a}{\it Artanh} \left ({\sin \left ( fx+e \right ) a{\frac{1}{\sqrt{ \left ( a+b \right ) a}}}} \right ){\frac{1}{\sqrt{ \left ( a+b \right ) a}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.535825, size = 378, normalized size = 7.27 \begin{align*} \left [\frac{\sqrt{a^{2} + a b} b \log \left (-\frac{a \cos \left (f x + e\right )^{2} + 2 \, \sqrt{a^{2} + a b} \sin \left (f x + e\right ) - 2 \, a - b}{a \cos \left (f x + e\right )^{2} + b}\right ) + 2 \,{\left (a^{2} + a b\right )} \sin \left (f x + e\right )}{2 \,{\left (a^{3} + a^{2} b\right )} f}, \frac{\sqrt{-a^{2} - a b} b \arctan \left (\frac{\sqrt{-a^{2} - a b} \sin \left (f x + e\right )}{a + b}\right ) +{\left (a^{2} + a b\right )} \sin \left (f x + e\right )}{{\left (a^{3} + a^{2} b\right )} f}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos{\left (e + f x \right )}}{a + b \sec ^{2}{\left (e + f x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18061, size = 74, normalized size = 1.42 \begin{align*} \frac{\frac{b \arctan \left (\frac{a \sin \left (f x + e\right )}{\sqrt{-a^{2} - a b}}\right )}{\sqrt{-a^{2} - a b} a} + \frac{\sin \left (f x + e\right )}{a}}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]